<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" type="text/css" href="../plugin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="../style/style.css"/>
    <link rel="stylesheet" type="text/css" href="../style/connect-edit.css"/>
</head>
<body>
<div class="edit-root">
    <form class="layui-form">
        <div class="edit-main">
            <div class="edit-show">
                <div class="layui-form-item">
                    <label class="layui-form-label">连接名称:</label>
                    <div class="layui-input-inline div-input01">
                        <input type="text" class="layui-input" placeholder="连接名称" lay-verify="required" id="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">连接地址:</label>
                    <div class="layui-input-inline div-input02">
                        <input type="text" class="layui-input" placeholder="连接地址" lay-verify="required" id="rhost">
                    </div>
                    <label class="layui-form-mid">:</label>
                    <div class="layui-input-inline div-input03">
                        <input type="text" class="layui-input" placeholder="连接端口" lay-verify="required" id="rport">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">连接密码:</label>
                    <div class="layui-input-inline div-input01">
                        <input type="password" class="layui-input" placeholder="连接密码" lay-verify="" id="rpass">
                    </div>
                </div>
            </div>
            <div class="edit-hide">
                <div class="layui-form-item">
                    <label class="layui-form-label">SSH通道:</label>
                    <div class="layui-input-inline div-input04">
                        <input name="type" lay-skin="primary" title="启用" type="checkbox" lay-filter="type" id="type">
                    </div>
                    <label class="layui-form-mid">集群：</label>
                    <div class="layui-input-inline div-input05">
                        <input name="isha" lay-skin="primary" title="启用" type="checkbox" lay-filter="isha" id="isha">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SSH用户:</label>
                    <div class="layui-input-inline div-input01">
                        <input type="text" class="layui-input ssh-input" placeholder="SSH用户" lay-verify="required"
                               id="sname">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SSH地址:</label>
                    <div class="layui-input-inline div-input02">
                        <input type="text" class="layui-input ssh-input" placeholder="SSH地址" lay-verify="required"
                               id="shost">
                    </div>
                    <label class="layui-form-mid">:</label>
                    <div class="layui-input-inline div-input03">
                        <input type="text" class="layui-input ssh-input" placeholder="SSH端口" lay-verify="required"
                               id="sport">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SSH密码:</label>
                    <div class="layui-input-inline div-input01">
                        <input type="password" class="layui-input ssh-input" placeholder="SSH密码" id="spass">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SSH私钥:</label>
                    <div class="layui-input-inline div-input01">
                        <input type="text" class="layui-input ssh-input" placeholder="SSH私钥" id="spkey">
                    </div>
                </div>
            </div>
        </div>
        <div class="edit-btns">
            <input type="button" id="testBtn" value="测试" class="layui-btn layui-btn-sm" style="background: #4476A7"/>
            <input type="button" value="保存" class="layui-btn layui-btn-sm" lay-filter="saveBtn" lay-submit
                   style="background: #4476A7"/>
            <input type="button" id="backBtn" value="取消" class="layui-btn layui-btn-sm" style="background: #4476A7"/>
        </div>
    </form>
</div>
<script type="text/javascript" src="../plugin/layui/layui.js"></script>
<script type="text/javascript" src="../script/nocopy.js"></script>
<script type="text/javascript" src="../script/connect-edit.js"></script>
</body>
</html>